package com.kaigejava.juc.concurrenthasmap;

import java.util.HashMap;
import java.util.Map;

/**
 * @author kaigejava
 */
public class ConCurrentHashMapTest {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
      //  System.out.println(1<<30);
        String str = "1";
        hash(str.hashCode());

        int capacity = 1;
        System.out.println(  capacity <<= 1);
    }

    static int hash(int h) {
        h ^= (h >>> 20) ^ (h >>> 12);
        return h ^ (h >>> 7) ^ (h >>> 4);
    }
}
